package cn.edu.scau.cmi.liujiaming.chapter06;

public class Pillar{
	Geometry bottom;
	double height;
	Pillar(){
		
	}
	Pillar(Geometry bottom,double height){
		this.bottom=bottom;
		this.height=height;
	}
	double getVolume() {
		return bottom.getArea()*height;
	}
}
